package cn.njxzc.examples;

import java.io.File;
import java.io.IOException;
import java.util.Date;

public class Exam9_25 {
	public static void main(String[] args) throws IOException  {
		File testfile = new File("testfile2");
		testfile.delete();
		testfile.createNewFile();
		long modtime = testfile.lastModified();
		System.out.println("last modification time #1 = " + new Date(modtime));
		testfile.setLastModified(0);
		modtime = testfile.lastModified();
		System.out.println("last modification time #2 = " + new Date(modtime));
	}
}
